package com.freemyleft.left.left_app.mian.index.my.accept_setup.Teacher_default_price;

import com.freemyleft.left.zapp.ui.recycler.DataConverter;
import com.freemyleft.left.zapp.ui.recycler.MultipleFields;
import com.freemyleft.left.zapp.ui.recycler.MultipleItemEntity;

import java.util.ArrayList;

import static com.freemyleft.left.left_app.mian.index.my.accept_setup.Teacher_default_price.TeacherDefaultPriceAdapter.TEACHER_TYPE;

public class TeacherDefaultConvert extends DataConverter {
    ArrayList<MultipleItemEntity> entities = new ArrayList<>();

    @Override
    public ArrayList<MultipleItemEntity> convert() {
        for (int i = 0; i < 10; i++) {
            String price = "￥80/1小时";
            String grade = "一年级";
            MultipleItemEntity entity=MultipleItemEntity.builder()
                    .setField(MultipleFields.ITEM_TYPE,TEACHER_TYPE)
                    .setField(TeacherDefaultPriceAdapter.TeacherDefaultPriceFiles.PRICE,price)
                    .setField(TeacherDefaultPriceAdapter.TeacherDefaultPriceFiles.GRADE,grade)
                    .build();
            entities.add(entity);
        }
        return entities;
    }
}
